require "test/unit"
$:.unshift File.dirname(__FILE__) + '/../lib'

require 'Eyealike'

class SearchTestCase < Test::Unit::TestCase
  
  
  def test_real_time_search
    
    client = Eyealike.new("V5VF5X79W1OCW6KQBGOM", "kQWhIzEHZjXeAfQozfcb7/AVtmZYjL7rTGIpm+J/", false, "localhost", 8081)
    
    assert_not_nil(client, message = "Client initialization failed")
    
    request = SearchRequest.new("1000011d-313d-7b6b-000b-001e0bb9ecc1", "3d36b2e0-5c44-11de-876f-001e0bb9ecc1", 5, 5)
        
    assert_not_nil(request)
    
    response = client.search(request)
    
    assert_not_nil(response) 
   
    
  end
  
end